<template>
  <div>
    <KunkkaTreeTransfer :fromData="fromData" @getTtData="getTtData" />
  </div>
</template>

<script>
  export default {
    data() {
      return {
        fromData: [{
          id: "1",
          pid: 0,
          label: "一级 1",
          children: [{
              id: "1-1",
              pid: "1",
              label: "二级 1-1",
              disabled: true,
              children: []
            },
            {
              id: "1-2",
              pid: "1",
              label: "二级 1-2",
              children: [{
                  id: "1-2-1",
                  pid: "1-2",
                  children: [],
                  label: "二级 1-2-1"
                },
                {
                  id: "1-2-2",
                  pid: "1-2",
                  children: [],
                  label: "二级 1-2-2"
                }
              ]
            }
          ]
        }],
      }
    },
    methods: {
      getTtData(needData, fromData, toData, obj) {
        console.log(needData, fromData, toData, obj)
      }
    }
  }

</script>
